#ifndef _M_LEVEL_H
#define _M_LEVEL_H

namespace lyzlog
{
    class LogLevel
    {
        public:
        enum class value
        {
            UNKNOW = 0,
            DEBUG,
            INFO,
            WARN,
            ERROE,
            FATAL,
            OFF
        };
        static const char* toString(LogLevel::value level)
        {
            switch(level)
            {
                case LogLevel::value::DEBUG : return "DEBUG";
                case LogLevel::value::INFO :return "INFO";
                case LogLevel::value::WARN :return "WARN";
                case LogLevel::value::ERROE: return "ERROE";
                case LogLevel::value::FATAL: return "FATAL";
                case LogLevel::value::OFF: return "OFF";
            }
            return "UNKNOW";
        }

    };
}

#endif